package net.csdn.business.auth.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @author likun
 * @date 2023/2/1 14:43
 */
@Data
@Configuration
@RefreshScope
public class AuthConfigData {
    /**
     * 令牌自定义标识
     */
    @Value("${repeat.token.header:uuid}")
    private String repeatHeader;

    @Value("${repeat.enabled:true}")
    private boolean repeatEnabled;
    
    @Value("${cache.redis.prefix:at}")
    private String redisKeyPrefix;
    @Value("${cache.default.time.out:60}")
    private Integer redisDefaultTimeOut;
}